import request from '@/utils/request'

// 待办
export function listProcessInstance(query, typeToMe, definitionKey) {
  var urlStr = '/processInstance/list'
  urlStr += '/' + typeToMe + '/'
  if (definitionKey !== undefined) {
    urlStr += definitionKey
  }
  return request({
    url: urlStr,
    method: 'get',
    params: query
  })
}


// 查询表单
export function formDataShow(taskID) {
  return request({
    url: '/task/formDataShow/'+taskID,
    method: 'get',
  })
}

// 查询表单
export function formDataSave(taskID,data) {
  return request({
    url: '/task/formDataSave/'+taskID,
    method: 'post',
    data:data
  })
}
